package cn.com.bsoft.mobile.dao

import cn.com.bsoft.mobile.entity.MobileApp
import cn.com.bsoft.mobile.entity.MobileDevice
import cn.com.bsoft.mobile.entity.MobileUser
import cn.com.bsoft.mobile.entity.MobileUserAppDeviceRelationship
import cn.net.xyan.blossom.core.support.EasyJpaRepository

interface UserAppRelationshipDao: EasyJpaRepository<MobileUserAppDeviceRelationship, String> {
    fun findByUserAndAppAndDevice(user:MobileUser,app:MobileApp,device:MobileDevice):MobileUserAppDeviceRelationship?
    fun findByUserAndApp(user:MobileUser,app:MobileApp):List<MobileUserAppDeviceRelationship>
}